import {defineStore} from 'pinia'

/**
 * 路由pinia控制layout的底本tabs
 */
export const routerStatus = defineStore('routerStatus', {
    state: () => ({
        isTabsView: true,
        loading: false
    }),
    persist: true,
    actions: {
        setIsTabs(status: boolean) {
            this.isTabsView = status
        },
        setLoading(status: boolean) {
            this.loading = status
        }
    }
})
